package com.seu.nic.component.utils;

import lombok.extern.slf4j.Slf4j;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.regex.Pattern;

@Slf4j
public class CommonUtils {

    private static Pattern CHINESE_PHONE_PATTERN = Pattern.compile("((13|15|17|18|19)\\d{9})|(14[57]\\d{8})");

    private static SimpleDateFormat stringfyDateToStrFormatter = new SimpleDateFormat("yyyy-MM-dd", Locale.US);

    private static Date date1900;

    public final static String KEY="[A-Za-z0-9\\u4e00-\\u9fa5]+";

    public static void waitForSeconds(int seconds){
        try {
            Thread.sleep(1000 * seconds);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
